<div class="bg-light lter b-b wrapper-md">
    <h4 class="m-n font-thin">商家入驻信息管理</h4>
    <button ui-sref="app.shopLocated" class="btn-back btn btn-dark btn-sm btn-rounded">
        返回
    </button>
</div>
<div class="wrapper-md" ng-controller="shopLocatedEditCtrl" ng-init="init()">
    <div class="panel panel-default">
        <div class="panel-heading m-n">
            套餐信息
        </div>
        <div class="panel-body">
            <form name="merchantsEditform" class="form-horizontal ng-pristine ng-valid ng-valid-date ng-valid-required ng-valid-parse ng-valid-date-disabled"
                method="POST" ng-submit="submit()">
                <div class="form-group">
                    <label class="col-sm-2 control-label">订单号</label>
                    <div class="col-sm-5">
                        <input type="text" ng-model="shopLocated.number" class="form-control" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">用户名称</label>
                    <div class="col-sm-5">
                        <input type="text" ng-model="shopLocated.userName" class="form-control" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">推荐用户</label>
                    <div class="col-sm-5">
                        <i ng-show="loadingLocations" class="fa fa-spinner fa-spin form-control-spin"></i> 
                        <input type="text" ng-model="shopLocated.recommendUserName" placeholder="请输入关键字" typeahead="address.name for address in getLocation($viewValue)" typeahead-loading="loadingLocations" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">店铺名称</label>
                    <div class="col-sm-5">
                        <select class="input-sm form-control" ng-model="shopLocated.shopId">
                            <option value="{{item.shopId}}" ng-repeat="item in shopList">{{item.name}}</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">套餐名称</label>
                    <div class="col-sm-5">
                        <select class="input-sm form-control" ng-model="shopLocated.setMealId">
                            <option value="{{item.id}}" ng-repeat="item in setMealList">{{item.name}}</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">支付金额</label>
                    <div class="col-sm-5">
                        <input type="number" maxlength="9" minlength="1" min="0.01" step="0.01" ng-model="shopLocated.payMoney" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">支付方式</label>
                    <div class="col-sm-5">
                        <input type="text" ng-if="shopLocated.payWay == 0" value="微信支付" class="form-control" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">状态</label>
                    <div class="col-sm-5">
                        <select class="input-sm form-control" ng-model="shopLocated.registStatus">
                            <option value="0">已选择套餐</option>
                            <option value="1">已注册基本信息</option>
                            <option value="2">已填写店铺信息</option>
                            <option value="3">提交完整信息</option>
                            <option value="4">审核通过</option>
                            <option value="5">审核不通过</option>
                        </select>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group pull-right">
                    <div class="col-sm-4 col-sm-offset-2">
                        <button type="submit" class="btn btn-success">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>